package sdu.icat.pj.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import sdu.icat.sys.smodel.SysArticle;

@Repository
public interface SysArticleRepository extends JpaRepository<SysArticle, Long>{

    List<SysArticle> findAll(Specification<SysArticle> spec);
    
    Page<SysArticle> findAll(Specification<SysArticle> spec,Pageable pageable);
    
}
